package proxy.dynamic;

public class Main {
    public static void main(String[] args) {
        IUserDao userDao = new UserDao();
        ProxyFactory proxyFactory = new ProxyFactory(userDao);
        IUserDao proxy = (IUserDao) proxyFactory.getProxyInstance();
        proxy.find();
        proxy.save();
    }
}
